Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix newer cubes sorting by version in RDF query #371

Merged
merged 1 commit into from
Feb 18, 2022

Conversation

bprusinowski
Copy link
Collaborator

Fixes #348.

a.out(ns.schema.version)?.value had a string type, so cube 9 would be considered as more recent than cube 10. This PR fixes the issue in one of the homepage examples.

@ptbrowne ptbrowne temporarily deployed to visualize-ad-fix-newer--sdcsem February 17, 2022 18:18 Inactive
@bprusinowski bprusinowski changed the title Newer cubes sorting by version in RDF query Fix newer cubes sorting by version in RDF query Feb 17, 2022
a.out(ns.schema.version)?.value,
b.out(ns.schema.version)?.value
+a.out(ns.schema.version)?.value!,
+b.out(ns.schema.version)?.value!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not know about this technique of using unary plus to parse the string to a number. I had to look it up the diff vs parseFloat. 👍

@ptbrowne ptbrowne merged commit 68a646c into main Feb 18, 2022
@ptbrowne ptbrowne deleted the fix/newer-cubes-sorting branch February 18, 2022 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Year dimension issue on one of the example dataset
2 participants